#!/usr/bin/python
import roslib; roslib.load_manifest('speech_recognition')
import stream_manager
import rospy
from std_msgs.msg import String

def say(stuff):
    print stuff
    stream_manager.synthesize(stuff)

def say_state(msg):
    say(msg.data)
def main():
    rospy.init_node("speak_slu_evaluator_state", anonymous=False)
    rospy.Subscriber("/blocknlp/slu_evaluator_status", String, say_state)
    
    while not rospy.is_shutdown():
        rospy.sleep(0.1)

if __name__ == "__main__":
    main()
